/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SalesMenu.java
 *
 * Created on Oct 23, 2010, 11:10:18 PM
 */

package matchmakingsystem;

/**
 *
 * @author shirni
 */
public class SalesMenu extends javax.swing.JFrame {

    /** Creates new form SalesMenu */
    public SalesMenu() {
        initComponents();
    }

    Sales sales1 = new Sales();
    SalesPerformance salesP = new SalesPerformance();

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jPanel1.setBackground(java.awt.Color.white);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "SALES", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Purisa", 1, 36))); // NOI18N
        jPanel1.setOpaque(false);
        jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

        jButton1.setBackground(java.awt.Color.white);
        jButton1.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Icons/user-group.gif"))); // NOI18N
        jButton1.setText("   SALES BY GROUPS   ");
        jButton1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 150, 280, 50));

        jButton2.setBackground(java.awt.Color.white);
        jButton2.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Icons/growth.gif"))); // NOI18N
        jButton2.setText("   SALES PERFORMANCE    ");
        jButton2.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        jPanel1.add(jButton2, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 320, 280, 50));

        getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 80, 400, 570));

        jButton5.setBackground(java.awt.Color.white);
        jButton5.setFont(new java.awt.Font("Purisa", 1, 14));
        jButton5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Icons/home.gif"))); // NOI18N
        jButton5.setText("   MAIN   ");
        jButton5.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton5, new org.netbeans.lib.awtextra.AbsoluteConstraints(530, 600, 170, 40));

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/matchmakingsystem/Icons/heart1.jpg"))); // NOI18N
        getContentPane().add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));

        pack();
    }// </editor-fold>//GEN-END:initComponents

//***************************** OPENING SALES GROUP MENU *******************************
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        sales1 = new Sales();
        sales1.setVisible(true);
        setVisible(false);
    }//GEN-LAST:event_jButton1ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



//***************************** OPENING SALES PERFORMANCE MENU **************************
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        salesP = new SalesPerformance();
        salesP.setVisible(true);
        setVisible(false);
    }//GEN-LAST:event_jButton2ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



 //***************************** MAIN MENU PAGE *****************************************
    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        new MainMenu().setVisible(true);
        setVisible(false);
    }//GEN-LAST:event_jButton5ActionPerformed
//*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*



    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new SalesMenu().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton5;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JPanel jPanel1;
    // End of variables declaration//GEN-END:variables

}
